 jQuery(document).ready(
	function($) {
		animatedcollapse.ontoggle=function($, divobj, state){ myOnToggle(divobj, state); };
		alert("inicia");
		animatedcollapse.init();
	}
);

function myOnToggle(divobj, state) {

	if (divobj) {
		var objId = divobj.id;
		objId = objId.replace('content', 'indicator');
		
		if (state == 'none') {
//			$(objId).style.background='url(../images/RightTriangleIcon.gif) no-repeat';
//			$(objId).innerHTML = '[+]';
		} else  {
//			$(objId).style.background='url(../images/DownTriangleIcon.gif) no-repeat';
//			$(objId).innerHTML = '[-]';		
		}		
	}

}

function toggleDivs(id){
	animatedcollapse.toggle(id);
}

function expandItem(id){
	toggleDivs(id);
	return false;
}


